package in.iqing.model.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.NoAutoIncrement;
import com.lidroid.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by ZuoShu on 15/7/4.
 */
@Table(name = "category")
public class Category implements Serializable {
    public static final int LATEST_UPDATE = -9;

    @Id
    @NoAutoIncrement
    @Column(column = "id")
    @JSONField(name = "id")
    private int id;

    @Column(column = "url")
    @JSONField(name = "url")
    private String url;

    @Column(column = "name")
    @JSONField(name = "name")
    private String name;

    @Column(column = "cover")
    @JSONField(name = "cover")
    private String cover;

    @Column(column = "category_order")
    @JSONField(name = "order")
    private int order;

    @Column(column = "book_url")
    @JSONField(name = "book_url")
    private String bookUrl;

    // db orm时用到bookId字段
    @Column(column = "book_id")
    private int bookId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getBookUrl() {
        return bookUrl;
    }

    public void setBookUrl(String bookUrl) {
        this.bookUrl = bookUrl;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }
}
